package com.zjp.lock.redis;

public class Consumer implements Runnable{
    private Shop shop;

    public Consumer(Shop shop) {
        this.shop = shop;
    }

    public void run() {
        shop.buy();
    }
}
